package cn.sh.library.gmwx.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

/**
 * Created by yesonme on 17-1-23.
 */
@Controller
@RequestMapping("/")
public class HomeController extends BaseController {
    @RequestMapping(value = "index", method = RequestMethod.GET)
    public String index(){
        return "public/index";
    }

    @RequestMapping(value = "wkrepo", method = RequestMethod.GET)
    public String search(){
        return "public/work";
    }

    @RequestMapping(value = "vbrepo", method = RequestMethod.GET)
    public String vocabulary(){
        return "public/vocabulary";
    }

    @RequestMapping(value = "ogrepo", method = RequestMethod.GET)
    public String organization(){
        return "public/organization";
    }

    @RequestMapping(value = "bibrepo", method = RequestMethod.GET)
    public String instance(){
        return "public/instance";
    }

    @RequestMapping(value = "gview", method = RequestMethod.GET)
    public String gview(){
        return "public/graph_view";
    }

    @RequestMapping(value = "graph", method = RequestMethod.GET)
    public String graph(){
        return "public/graph";
    }
}
